package models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import play.db.jpa.GenericModel;

@Entity
public class ProfileLanguages extends GenericModel {

	@Id
	@ManyToOne
	@JoinColumn(name = "PROFILE_ID")
	private Profile profile;

	@Id
	@ManyToOne
	@JoinColumn(name = "LANGUAGE_ID")
	private Language language;

	@Column(name = "level")
	private String level;

	public ProfileLanguages(Profile profile, Language language, String level) {
		super();
		this.profile = profile;
		this.language = language;
		this.level = level;
	}

	public Profile getProfile() {
		return profile;
	}

	public void setProfile(Profile profile) {
		this.profile = profile;
	}

	public Language getLanguage() {
		return language;
	}

	public void setLanguage(Language language) {
		this.language = language;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}
}
